package com.huatai.saas.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.huatai.saas.entity.UserModelAuth;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.huatai.saas.vo.ModelVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 用户模型授权表 Mapper 接口
 * </p>
 *
 * @author songxiude
 * @since 2024-04-28
 */
public interface UserModelAuthMapper extends BaseMapper<UserModelAuth> {

	@Select("SELECT * FROM user_model_auth ${ew.customSqlSegment}")
	IPage<ModelVo> getUserModels(Page<ModelVo> page, @Param(Constants.WRAPPER) LambdaQueryWrapper wrapper);

}
